<div class="paging">
<?php
echo $this->Paginator->options(array('update' => '#content','evalScripts' => false));echo $this->Paginator->prev('< ' . __('Anterior'), array(), null, array('class' => 'prev disabled'));
echo $this->Paginator->numbers(array('separator' => ''));
echo $this->Paginator->next(__('Siguiente') . ' >', array(), null, array('class' => 'next disabled'));
?>
</div>
<table id="tabla">
	<thead>
		<tr>
		<th><?php echo $this->Paginator->sort('Id' ,'Call.id'); ?></th>
		<th><?php echo $this->Paginator->sort('Nombre','Call.nombre'); ?></th>
		<th><?php echo $this->Paginator->sort('Valor smmv','Call.valor_smmv'); ?></th>
		<th><?php echo $this->Paginator->sort('Valor smmv para predios','Call.smmv_predios'); ?></th>
		<th><?php echo $this->Paginator->sort('Valor smmv por proyecto','Call.smmv_proyecto'); ?></th>
		<th><?php echo $this->Paginator->sort('Smmm notarial','Call.smmv_notarial'); ?></th>
		<th></th>
		<th></th>
		</tr>
	</thead>
	<tbody>
<?php foreach ( $Calls as $Call):?>
		<tr>
		<td><?php echo $Call['Call']['id']; ?></td>
		<td><?php echo $Call['Call']['nombre']; ?></td>
		<td><?php echo $Call['Call']['valor_smmv']; ?></td>
		<td><?php echo $Call['Call']['smmv_predios']; ?></td>
		<td><?php echo $Call['Call']['smmv_proyecto']; ?></td>
		<td><?php echo $Call['Call']['smmv_notarial']; ?></td>
		<td><?php echo $ajax->link('Editar',array('controller'=>'Calls','action'=>'edit',$Call["Call"]["id"]),array('update'=>'content','indicator'=>'loading')); ?></td>
		<td><?php echo $ajax->link('Requisitos minimos',array('controller'=>'requirements','action'=>'index',$Call["Call"]["id"]),array('update'=>'content','indicator'=>'loading')); ?></td>
		</tr>
<?php endforeach;?>
	</tbody>
</table>
<?php echo $this->Js->writeBuffer();?>
		<?php echo $ajax->link('Adicionar',array('controller'=>'Calls','action'=>'add'),array('update'=>'content','indicator'=>'loading')); ?>
